package com.zmn.oms.model.dto.fault;

import lombok.Data;

import java.util.List;
import java.util.Objects;

/**
 * @author sunlife
 * @date 2019/12/14 19:20
 */
@Data
public class FaultItemGroupDTO {

    /**
     * 服务分组名称
     */
    private String servItemGroupName;

    /**
     * 服务分组Id
     */
    private Integer servItemGroupId;

    /**
     * 服务分组Id
     */
    private List<FaultItemDTO> serviceItemDTOList;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        FaultItemGroupDTO that = (FaultItemGroupDTO) o;
        return Objects.equals(servItemGroupId, that.servItemGroupId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(servItemGroupId);
    }
}
